<script >
export default {
  data() {
    return {
      // 轮播图数据
      img: [],

    }
  },
  methods: {
    findAll() {
      this.axios.get("http://1.94.221.254:7072/activity/findAll").then(res => {
        this.img = res.data
        console.log(res.data)
      })
    },
    onClickLeft(){
      this.$router.push('/shouye')
    }
  },
  created() {
    this.findAll()
    var token = localStorage.getItem('token');
    if (token === null) {
      this.$router.push('/');
    }
  },
}
</script>

<template>
  <div>
    <van-nav-bar
        title="活动详情"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
    />
    <el-table :data="img">
      <el-table-column label="活动详情">
        <template slot-scope="scope">
          <el-image :src="scope.row.phone" style="width: 100%;height: 100%;"></el-image>
        </template>
      </el-table-column>
    </el-table>
  </div>

</template>

<style scoped>

</style>
